package com.southwind.aspect;

import org.springframework.stereotype.Component;

/**
 * Created by chenhs on 2018/6/22.
 */
@Component
public class CalServiceImpl implements CalService {

    @Override
    public int add(int num1, int num2) {
        int result = num1 + num2;
        return result;
    }

    @Override
    public int sub(int num1, int num2) {
        int result = num1 - num2;
        return result;
    }

    @Override
    public int mul(int num1, int num2) {
        int result = num1 * num2;
        return result;
    }

    @Override
    public int div(int num1, int num2) {
        int result = num1/num2;
        return result;
    }
}
